'use strict';
angular.module('stmms')
    .config(['$mdThemingProvider','$stateProvider', '$urlRouterProvider', '$httpProvider',function ($mdThemingProvider,$stateProvider, $urlRouterProvider, $httpProvider) {
        $mdThemingProvider.theme('default');
        $httpProvider.defaults.useXDomain = true;
        delete $httpProvider.defaults.headers.common['X-Requested-With'];

        //
        // For any unmatched url, redirect to /state1
        $urlRouterProvider.otherwise("/mark");
        //
        // Now set up the states
        $stateProvider
            .state('mark',{
                url:'/mark',
                templateUrl: "pages/mark.html",
                controller:'MarkCtrl'
            })
    }])